{% extends "base_mobile.html" %}

{% block content %}
<h2>albums</h2>

{% regroup songs by album as albumlist %}
<div class="content">
{% for album in albumlist %}
<a href="#{{ forloop.counter }}"><img src="{{ album.grouper.get_cover_url }}" width="107"/></a>
{% endfor %}
</div>
{% for album in albumlist %}
<div class="content">
<p><b><a name="{{ forloop.counter }}">{{ album.grouper.title }}</a></b> ({{ album.grouper.date|date:"Y" }})
<ol>
{% for song in album.list|dictsort:"track_number" %}
<li><a href="{{ song.soundfile }}">{{ song }}</a></li>
{% endfor %}
</ol>
</p>
</div>
{% endfor %}

{% endblock %}